package com.castile.sdk.nifi.client.api;

import com.castile.sdk.nifi.client.config.NiFiConfig;
import com.castile.sdk.nifi.client.exception.NiFiClientCreateException;

/**
 * @author castile
 * @date 2025-05-12 下午11:47
 */
public interface NiFiServiceFactory<T> {

    /**
     *  创建nifi客户端，根据niif不同的配置
     *
     * @param nifiConfig nifi配置参数
     * @return nifi客户端
     * @throws NiFiClientCreateException
     */
    T createNiFiService(final NiFiConfig nifiConfig) throws NiFiClientCreateException;
}
